home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / Mesa-2.2 / src / MAKEFILE.DOS < prev    next >
Encoding:
Text File  |  1997-03-23  |  2.4 KB  |  87 lines

  1. # Makefile for core library for MS-DOS cwallace@dreamworks.com
  2. # requires denis vadura`s dmake 3.80 or above
  3.  
  4. # Mesa 3-D graphics library
  5. # Version:  2.1
  6. # Copyright (C) 1995-1996  Brian Paul
  7. #
  8. # This library is free software; you can redistribute it and/or
  9. # modify it under the terms of the GNU Library General Public
  10. # License as published by the Free Software Foundation; either
  11. # version 2 of the License, or (at your option) any later version.
  12. #
  13. # This library is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16. # Library General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU Library General Public
  19. # License along with this library; if not, write to the Free
  20. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  
  22.  
  23. # $Id:$
  24.  
  25. # $Log:$
  26.  
  27. ##### MACROS #####
  28.  
  29. VPATH = RCS
  30.  
  31. INCDIR = ..\include
  32. LIBDIR = ..\lib
  33.  
  34. # dont define both univbe and glide, its pointless !.
  35.  
  36. # Want UniVBE (Display Doctor) Support, Scitech Software www.scitechsoft.com
  37. # Set /I to point to scitech include files.
  38. # You only need to rebuild dosmesa.c for this to happen.
  39. CFLAGS += /DUNIVBE /IC:\scitech\include
  40.  
  41. # Want MGL Support, again scitech software
  42. #CFLAGS += /DMGL /IC:\scitech\include
  43.  
  44. # Want GLIDE Support, http://www.3dfx.com
  45. #CFLAGS += /DGLIDE /IC:\glide\dos\include
  46.  
  47. CORE_SOURCES = accum.c alpha.c alphabuf.c api.c attrib.c bitmap.c blend.c \
  48.     bresenhm.c clip.c context.c copypix.c depth.c dlist.c draw.c \
  49.     drawpix.c enable.c eval.c fog.c feedback.c get.c image.c \
  50.     interp.c light.c lines.c logic.c masking.c matrix.c misc.c osmesa.c \
  51.     pb.c pixel.c points.c pointers.c polygon.c readpix.c scissor.c span.c \
  52.     stencil.c teximage.c texobj.c texture.c triangle.c varray.c vb.c \
  53.     vertex.c winpos.c xform.c
  54.  
  55. DRIVER_SOURCES = dosmesa.c
  56.  
  57. SOURCES = $(CORE_SOURCES) $(DRIVER_SOURCES)
  58.  
  59. OBJECTS = $(SOURCES:.c=.obj)
  60.  
  61. ##### RULES #####
  62.  
  63. .c.obj:
  64.     $(CC) /C /DDOSVGA /I$(INCDIR) $(CFLAGS) $<
  65.  
  66. ##### TARGETS #####
  67.  
  68. GL_LIB = dosmesa.lib
  69.  
  70. default: $(GL_LIB)
  71.  
  72. clean:
  73.     -rm *.o *~
  74.  
  75. MAKELIB = wlib /b /c /n /q
  76. RANLIB = ls
  77.  
  78. # Make the library
  79. $(GL_LIB): $(OBJECTS)
  80.     $(MAKELIB) $(GL_LIB) $(OBJECTS)
  81. #    $(RANLIB) $(GL_LIB)
  82. #    move $(GL_LIB)* $(LIBDIR)
  83.  
  84. #include ..\Make.dos
  85. include depend.dos
  86.  
  87.